package cn.empcode.proxy.staticproxy;

/**
 * 代理对象 静态代理
 * 
 * @author Administrator
 *
 */
public class UserDaoProxy implements IUserDao {

	// 接收保存目标对象
	private IUserDao target;

	public UserDaoProxy(IUserDao target) {
		this.target = target;
	}

	@Override
	public void save() {
		System.out.println("-----save start----");
		target.save();
		System.out.println("-----save end------");
	}

}
